package Test4;

public class Outer {

    int a = 10;
    static int b = 20;

    static  class Inner{
        public void show1(){
            //System.out.println(a); 会报错
            Outer o = new Outer();
            System.out.println(o.a);
            System.out.println("非静态");
        }

        public  static void show2(){
            Outer o = new Outer();
            System.out.println(o.a);
            System.out.println("静态");
        }
    }
}
